package org.martyn.danbooru.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {

	public static Date ParseDate (String date)
	{
		Date obj = new Date();
		
		SimpleDateFormat df = new SimpleDateFormat("MMM dd HH:mm:ss Z yyyy");

		try
		{
			String temp = date.substring(4);
			
			return obj = df.parse(temp); 
		}
		catch (ParseException e) 
		{
			return null;
		}
	}	
}
